package com.woniuxy.mapper.custom;

import com.woniuxy.entity.Role;
import com.woniuxy.mapper.RoleMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface CustomRoleMapper extends RoleMapper {
    Role findRoleWithPermissionsByRoleId(Integer roleId);

    int distPermToRole(@Param("roleId") Integer roleId, List<Integer> permissionIds);
    int revokePermFromRole(Integer roleId);


}
